package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;

import com.ruoyi.system.domain.BusOrder;
import com.ruoyi.system.domain.vo.BusOrderVo;
import com.ruoyi.system.mapper.BusOrderMapper;
import com.ruoyi.system.service.IBusOrderService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 订单Service业务层处理
 *
 * @author Tellsea
 * @date 2024-04-11
 */
@Service
public class BusOrderServiceImpl extends ServiceImpl<BusOrderMapper, BusOrder> implements IBusOrderService {

    @Override
    public TableDataInfo<BusOrderVo> queryList(BusOrderVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<BusOrderVo> queryAll(BusOrderVo entity) {
        return this.baseMapper.queryList(entity);
    }

}
